package com.zhou.system.management.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.zhou.system.management.entity.SysUser;
import com.zhou.system.management.model.ao.SysUserQueryAo;
import com.zhou.system.management.model.inner.DeptRoleInner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * <p>
 * 用户信息表 Mapper 接口
 * </p>
 *
 * @author zxf
 * @since 2023-05-13
 */
public interface SysUserMapper extends BaseMapper<SysUser> {

    IPage<SysUser> queryUsers(IPage<SysUser> page, @Param("deptId") Long deptId, @Param("queryAo") SysUserQueryAo queryAo);

    Integer selectCountByUsername(String username);

    List<DeptRoleInner> queryDeptRoles(Long userId);
}
